Java ArrayList contains() - Check if element exists